package cn.icare.cms;

import cn.icare.cms.dao.po.Member;
import cn.icare.cms.dao.po.Unit;
import cn.icare.cms.model.ro.AddMemberRO;
import cn.icare.cms.model.ro.EditMemberRO;
import cn.icare.cms.model.vo.rest.MsgDatasVO;

import java.util.List;

public interface MemberService {
    Long createOne(Member ro);

    boolean updateOne(EditMemberRO ro);

    boolean deleteOne(Long id);

    boolean deleteBatch(List<Long> ids);

    Member getOne(Long id);

    MsgDatasVO getList(Integer type,String name, Integer pageNum, Integer pageSize);

    boolean updateStatus(Long id,Integer status);

    boolean isExists(Long id,String phone,String username);

    Member getOneByPhone(String phone);


}
